import Vue from 'vue'
import VueRouter from 'vue-router'
import FirstPage from '@/views/FirstPageVue.vue'
import Classify from '@/views/ClassifyVue.vue'
import Orders from '@/views/OrdersVue.vue'
import MyVue from '@/views/MyVue.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/firstpage',
    },
    {
      path: '/firstpage',
      component: FirstPage,
    },
    {
      path: '/classify',
      component: Classify,
    },
    {
      path: '/orders',
      component: Orders,
    },
    {
      path: '/my',
      component: MyVue,
    },
  ],
})
export default router
